package com.itheima.reggie.service;

import com.itheima.reggie.common.ResultInfo;
import com.itheima.reggie.domain.Employee;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface EmployeeService {
    //登录
    ResultInfo login(String username, String password);
    //根据姓名查询
    List<Employee> findByName(String name);
    //新增
    void save(Employee employee);

    //根据id查询
    Employee findById(Long id);

    //更新
    void update(Employee employee);

}
